Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gadget: emmc syntax support #14533

Merged

Conversation

Meulengracht
Copy link
Member

@Meulengracht Meulengracht commented Sep 24, 2024

This is the first PR of 3 (likely) in the road to emmc support.

The first PR (this one)

  • Implement the neccessary syntax support for gadgets to specifiy eMMC hardware boot partitions and which images go there during gadget updates

Next PRs:

REF: SNAPDENG-32142

@Meulengracht Meulengracht force-pushed the feature/gadget-emmc-syntax branch from fb01951 to bed97d5 Compare October 4, 2024 07:49
@Meulengracht Meulengracht marked this pull request as ready for review October 4, 2024 07:50
@Meulengracht Meulengracht requested a review from bboozzoo October 4, 2024 07:53
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 96.90722% with 3 lines in your changes missing coverage. Please review.

Project coverage is 78.97%. Comparing base (96ea7b0) to head (5b10081).
Report is 51 commits behind head on master.

Files with missing lines Patch % Lines
gadget/gadget.go 95.71% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14533      +/-   ##
==========================================
+ Coverage   78.95%   78.97%   +0.02%     
==========================================
  Files        1084     1085       +1     
  Lines      146638   147221     +583     
==========================================
+ Hits       115773   116272     +499     
- Misses      23667    23723      +56     
- Partials     7198     7226      +28     
Flag Coverage Δ
unittests 78.97% <96.90%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gadget/gadget.go Outdated Show resolved Hide resolved
gadget/validate.go Outdated Show resolved Hide resolved
gadget/validate.go Outdated Show resolved Hide resolved
Copy link
Member

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I have some questions, mainly about rpmb and some checks.

gadget/validate.go Outdated Show resolved Hide resolved
gadget/validate.go Outdated Show resolved Hide resolved
gadget/validate.go Outdated Show resolved Hide resolved
gadget/gadget.go Outdated Show resolved Hide resolved
gadget/gadget.go Show resolved Hide resolved
gadget/gadget.go Outdated Show resolved Hide resolved
Copy link
Contributor

@bboozzoo bboozzoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one comment about naming

gadget/validate.go Show resolved Hide resolved
Copy link
Member

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - some minor comments, but already approving

gadget/gadget.go Outdated Show resolved Hide resolved
gadget/gadget.go Outdated Show resolved Hide resolved
gadget/validate.go Outdated Show resolved Hide resolved
// -*- Mode: Go; indent-tabs-mode: t -*-

/*
* Copyright (C) Canonical Ltd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not put the year here anymore? Is this a new policy?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a legal standponit we don't have to, we should slowly migrate to year-less headers, i wanted to bring this up at the sprint but forgot

@Meulengracht Meulengracht force-pushed the feature/gadget-emmc-syntax branch from 9958871 to 5b10081 Compare November 8, 2024 09:41
@Meulengracht Meulengracht merged commit e83b8eb into canonical:master Nov 13, 2024
43 of 58 checks passed
@Meulengracht Meulengracht deleted the feature/gadget-emmc-syntax branch November 13, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants